from core.models import User


class UserService(object):

    def get_by_username(self, username):
        return User.query.filter(User.name == username).first()

